// @Bind #updateActionMove.beforeExecute
!function(self, arg) {

var updateActionMove = view.id("updateActionMove");
updateActionMove.set("parameter",{"warehouseUid":mWarehouseId});
}

// @Bind #cdWarebinTree.onOpen
!function(self, arg) {
var dsWarebin = view.id("dsWarebin");


dsWarebin.set("parameter",{"warehouseUid":mWarehouseId});


}

// @Bind #warebinTree.onDataRowClick
!function(self, arg) {
var dropDown = dorado.widget.DropDown.findDropDown(self);
var node = self.get("currentNode");

var dsInvInfo = view.id("dsInvInfo");

var invInfo = dsInvInfo.getData("#");

var num = invInfo.get("invQty");

//dorado.MessageBox.alert(num);

/*var dgInvInfo = view.id("dgInvInfo");


var dgInfo = dgInvInfo.get("selection");

if(dgInfo.length == 0){
	dorado.MessageBox.alert("请先选择要移动的物料!");
	}else{
		
	}*/

invInfo.set("newBinId", node.get("data").get("warebinUid"));
invInfo.set("newBinName", node.get("data").get("binName"));
invInfo.set("moveNum", num);

dropDown.close();




}

